import request from '@/utils/request'

// 查询输液室待登记列表 (分页)
export function selectPageInfusionRegisterStay(query) {
  return request({
    url: '/business/infusionRegisterStay/selectPage',
    method: 'get',
    params: query
  })
}

// 查询输液室待登记列表 (不分页)
export function listInfusionRegisterStay(query) {
  return request({
    url: '/business/infusionRegisterStay/list',
    method: 'get',
    params: query
  })
}

// 查询待登记的输液患者列表
export function getInfusionRegisterStayList(query) {
  return request({
    url: '/business/infusionRegisterStay/getInfusionRegisterStayList',
    method: 'get',
    params: query
  })
}

// 查询待登记的输液患者项目明细列表
export function getInfusionRegisterStayItemList(query) {
  return request({
    url: '/business/infusionRegisterStay/getInfusionRegisterStayItemList',
    method: 'get',
    params: query
  })
}

// 查询输液室待登记详细
export function getInfusionRegisterStay(infusionRegisterStayId) {
  return request({
    url: '/business/infusionRegisterStay/' + infusionRegisterStayId,
    method: 'get'
  })
}

// 新增输液室待登记
export function addInfusionRegisterStay(data) {
  return request({
    url: '/business/infusionRegisterStay',
    method: 'post',
    data: data
  })
}

// 修改输液室待登记
export function updateInfusionRegisterStay(data) {
  return request({
    url: '/business/infusionRegisterStay',
    method: 'put',
    data: data
  })
}

// 删除输液室待登记
export function delInfusionRegisterStay(infusionRegisterStayId) {
  return request({
    url: '/business/infusionRegisterStay/' + infusionRegisterStayId,
    method: 'delete'
  })
}
